# -*- coding: utf-8 -*-
# @Time    : 2021/1/4 下午6:00
# @Author  : tgy


def test01():
    ...
    name = None
    if name is None:
        print(f'name is None')
    return


def test02(x):
    ...
    if not isinstance(x, (int, float)):
        raise TypeError('bad operand type')
    return x


def test03():
    return 1, 2, 3


def test04(name, gender, age=12, location='北京'):
    ...
    print(name, gender, age, location)


def test05(con = None):
    ...
    if con is None:
        con = []
    con.append('end')
    return con


def test06(name,*,age,location):
    ...
    print(name,age,location)



def test07(name,*loc,age):
    ...
    print(name, loc, age)


x = 11

def test08():
    ...
    x = 12
    print(x)

if __name__ == '__main__':
    ...
    # res = test01()
    # print(res)
    # test02('111')
    # result = test03()
    # print(type(result))
    # test04('zhansa', '女', age=21)
    # print(test05())
    # params = {'age': 21, 'location':'武汉'}
    # test06('1', **params)
    # test07('aa', 11, 111, age=11)
    test08()
    print(x)